﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.Web.publicfile.index" %>

<%@ Register Src="../../Control/CheckRight.ascx" TagName="CheckRight" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head1" runat="server">
    <title>无标题页</title>
    <style type="text/css">
        BUTTON.op
        {
            border-right: #eeeeee 1px solid;
            border-top: #eeeeee 1px solid;
            border-left: #eeeeee 1px solid;
            width: 120px;
            cursor: hand;
            border-bottom: #eeeeee 1px solid;
            background-color: #9dc2db;
        }
    </style>
    <%--  <script type="text/javascript" language="javascript" src="ntkoocx.js"></script>--%>
    <script type="text/javascript" language="javascript">
        function WebOffice1_NotifyCtrlReady() {
            //LoadOriginalFile接口装载文件,
            //如果是编辑已有文件，则文件路径传给LoadOriginalFile的第一个参数
            //alert(document.all.WebOffice1.Is2007);
            //document.all.WebOffice1.ReadOnly = 1;
            document.all.WebOffice1.LoadOriginalFile("<%=url%>", "<%=fileType%>");
            document.all.WebOffice1.HideMenuArea('hideall', '', '', '');
            document.all.WebOffice1.HideMenuItem(0x01 + 0x02 + 0x04 + 0x4000);
        }
    </script>
</head>
<body class="bodycolor">
    <form id="myForm" method="post" enctype="multipart/form-data" runat="server">
    <script language="javascript" for="WebOffice1" event="NotifyCtrlReady">
       
         WebOffice1_NotifyCtrlReady() // 在装载完Weboffice(执行<object>...</object>)控件后自动执行WebOffice1_NotifyCtrlReady方法
       
    </script>
    <uc1:CheckRight ID="CheckRight1" runat="server" />
    <div style="width: 100%; height: 620px">
        <!-- -----------------------------== 装载weboffice控件 ==----------------------------------->
        <script src="../../weboffice/LoadWebOffice.js" type="text/javascript"></script>
        <!-- --------------------------------==  结束装载控件 ==------------------------------------->
    </div>
    </form>
</body>
</html>
